
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '加盟商管理制度',
    enableValidate: true
})

@Injectable()
export class BasicFormViewmodelForm extends Form {
    @NgFormControl({
        id: 'merchantName_6fe22401_jkc2',
        name: "{{merchantName_6fe22401_jkc2}}",
        binding: 'merchantName',
        updateOn: 'blur',
        defaultI18nValue: '商户名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantName: FormControl;

    @NgFormControl({
        id: 'merchantCode_9b2b65e3_ovuf',
        name: "{{merchantCode_9b2b65e3_ovuf}}",
        binding: 'merchantCode',
        updateOn: 'blur',
        defaultI18nValue: '商户编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantCode: FormControl;

    @NgFormControl({
        id: 'adminstrator_21258f42_6sdv',
        name: "{{adminstrator_21258f42_6sdv}}",
        binding: 'adminstrator',
        updateOn: 'blur',
        defaultI18nValue: '管理员',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    adminstrator: FormControl;

}